package com.hoodbrains.insideloc;



import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;

import android.widget.Button;
import android.widget.ImageButton;


import com.hoodbrains.insideloc.locator.ShopListActivity;
import com.hoodbrains.insideloc.maps.CreateMapActivity;
import com.hoodbrains.insideloc.maps.EditGondoleActivity;
import com.hoodbrains.insideloc.shopping.ShoppingListActivity;

import com.hoodbrains.insideloc.R;

public class InsideLocActivity extends Activity {

	Context mContext;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.main);
		mContext = this;

		ImageButton shoppingListButton = (ImageButton) findViewById(R.id.shoppingListButton);
		ImageButton shopListButton = (ImageButton) findViewById(R.id.shopListButton);

		shoppingListButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent(mContext, ShoppingListActivity.class);
				startActivity(intent);
			}
		});

		shopListButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent(mContext, ShopListActivity.class);
				startActivity(intent);
			}
		});
	}

}